#ifndef THREADSENDGPS_H
#define THREADSENDGPS_H
#include <QThread>
#include "ui_widget.h"
#include "QTcpSocket"
#include <QHostAddress>
#include "clientsocket.h"
class ThSendGps : public QThread,public  Ui::Widget
{
    Q_OBJECT
public:
    explicit ThSendGps();
public:
    void SendGps(QString gps);
    void SetIp(QString ip);
    void SetPort(int pt);
   // ClientSocket &thclient;

private:

     QByteArray DataReceived;
     void run();
     int a;

     QHostAddress address;
     quint16 port;
signals:
   void error(const QString error);
   void CTerror(const QString error);


public slots:
      void clienterror(const QString);

};

#endif // THREADSENDGPS_H
